#include "HT66F002.h"
#include "RamDef.h"

union	Fbit	_SysFlag;
u8		Time_800usCnt,Time_NightLed;

void main()
{
	Init();
	while(1)
		{
		_clrwdt();
		AdService();
		_nop();
		_nop();
		if(Time_NightLed<=20)
				Time_NightLed++;
			else
			{
				Time_NightLed=0;				
				if(Ad_EnirTemp>20&&Ad_EnirTemp<=130)  	P_Led1=0;
				else 			 	P_Led1=1;
			}
		}
}